package com.biostime.qdingding.modules.qd.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.api.dto.CommentDto;
import com.biostime.qdingding.modules.qd.entity.Comment;

/**
 * 评论Dao
 * @author king
 * @version 2015-11-05
 */
@MyBatisDao
public interface CommentDao extends CrudDao<Comment> {
	
	public boolean audit(Comment comment);
	
	
	
	
	
//	 <!-- ————————————————————————————楚河汉界，谁敢动我的，打死! ————————————————————————————————————-->		
	public int apiInsert(Comment comment);
	
	public Comment apiGetComment(Comment comment);
	
	public HashMap<String,Object> apiScoreByTheme(@Param("serialId")String serialId,@Param("levelId") String levelId);
	
	public List<CommentDto> apiGetCommentList(@Param("serialId")String serialId,@Param("levelId") String levelId,@Param("userId")String userId); 
	
	public List<String> apiGetHeadImage(@Param("serialId")String serialId,@Param("levelId") String levelId);
	
	public int apiGetCommentNum(@Param("serialId")String serialId,@Param("levelId") String levelId);
	
	public List<CommentDto> apiGetNewComments(@Param("centerId") String centerId,@Param("userId")String userId);
	
	public List<CommentDto> apiActivityComments(@Param("activityId")String activityId,@Param("userId")String userId);
}